//
//  QPushOrderCell.m
//  QoilPublic
//
//  Created by 杨凯 on 2017/7/24.
//  Copyright © 2017年 杨凯. All rights reserved.
//

#import "QPushOrderCell.h"
@interface QPushOrderCell ()
@property (weak, nonatomic) IBOutlet UILabel *textLab;
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@end
@implementation QPushOrderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setIndexPath:(NSIndexPath *)indexPath{
    _indexPath = indexPath;
    
    if (_indexPath.row == 0) {
        _titleLab.text = @"加油时间";
        _textLab.textColor = [QColorUtility defaultDeepGrayColor];
    }else if (_indexPath.row == 1){
        _titleLab.text = @"加油地点";
        _textLab.textColor = [QColorUtility defaultDeepGrayColor];
    }else{
        _titleLab.text = @"加油金额";
        _textLab.textColor = [QColorUtility defaultRedColor];
   }
}

- (void)setModel:(QPushModel *)model{
    _model = model;
    if (_indexPath.row == 0) {
        _textLab.text = _model.time;
    }else if (_indexPath.row == 1){
        _textLab.text = _model.adress;
    }else if (_indexPath.row == 2){
        _textLab.text = _model.payAmount;
    }
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
